import request from "@/utils/request";

const DEPT_BASE_URL = "/user";

export function createApi(data) {
  return request({
    url: `${DEPT_BASE_URL}/create`,
    method: "post",
    data: data,
  });
}
export function listApi(data) {
  return request({
    url: `${DEPT_BASE_URL}/list`,
    method: "post",
    data: data,
  });
}
export function delApi(data) {
  return request({
    url: `${DEPT_BASE_URL}/del`,
    method: "post",
    data: data,
  });
}

// 查看权限
export function permissionView(data) {
  return request({
    url: `/permission/admin/view`,
    method: "post",
    data: data,
  });
}

// 保存权限
export function permissionSave(data) {
  return request({
    url: `/permission/admin/save`,
    method: "post",
    data: data,
  });
}

export function usersActstats(data) {
  return request({
    url: `/admin/users/actstats`,
    method: "post",
    data: data,
  });
}
